import logging
import logging.handlers

logger = logging.getLogger()

logger.setLevel(logging.DEBUG)

st = logging.StreamHandler()

fh = logging.handlers.TimedRotatingFileHandler('a.log', when="midnight", interval=1, backupCount=3)

fmt = "%(asctime)s"

